package OOPHomework.OOPHomework;

public class OOPHomeworkTest01 {
    public static void main(String[] args) {
        //根据手机类创建一个实体类对象
        Phone phone=new Phone();
        //根据对象调用属性
        phone.brand="小米手机";
        phone.price=3998.0;
        phone.color="黑色";
        //根据对象调用方法
        phone.call();
        phone.sendMessage();
    }
}
